package com.scap.dfs.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.validator.constraints.NotEmpty;

@Entity
@Table( name = "ACCOUNT")
public class Account {

	
	@NotEmpty
	@Id
	@Column ( name = "CODE", length = 200)
	private String vaAccountCode;
	
	@Column ( name = "DESCRIPTION", length = 200)
	private String vaAccountDescription;
	
	public Account(String vaAccountCode  , String vaAccountDescription) {
			 this.vaAccountCode = vaAccountCode;
			 this.vaAccountDescription = vaAccountDescription;
	}

	public Account(){ 
		
	}
	
	public String getVaAccountCode() {
		return vaAccountCode;
	}

	public void setVaAccountCode(String vaAccountCode) {
		this.vaAccountCode = vaAccountCode;
	}

	public String getVaAccountDescription() {
		return vaAccountDescription;
	}

	public void setVaAccountDescription(String vaAccountDescription) {
		this.vaAccountDescription = vaAccountDescription;
	}

	@Override
	public String toString(){
		return "this code " + this.vaAccountCode;
	}
	

}
